package com.luoy.designpatterns.factory;

/**
 * @desc: HTML button implementation.
 * @author: luoy
 * @date: 2022-06-30 16:30
 */

public class HtmlButton implements Button {

    @Override
    public void render() {
        System.out.println("<button>Test Button</button>");
        onClick();
    }

    @Override
    public void onClick() {
        System.out.println("Click! Button says - 'Hello World!'");
    }
}